package com.sbpm.crmbpm.client.services;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.sbpm.crmbpm.shared.data.TaskInfo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by U_M0PQL on 12.10.2014.
 */
@RemoteServiceRelativePath("rpc/processService")
public interface ProcessService extends RemoteService
{
    Long createMoneyTransferProcessInstance();
    Long createInsuranceRequestProcessInstance();
    List<TaskInfo> getTaskList( String user );
    void moveFlow( Long taskId, String user );
    Map<String, Object> getTaskData( Long taskId );
    Map<String, Object> startTask( Long taskId, String user );
    void stopTask( Long taskId, String user );
    void completeTask( Long taskId, String user, Map<String, Object> data );
    void dummyDate( Date date, Boolean bool, BigDecimal bigDecimal );
    Double dummyDouble( Double doub );
    BigDecimal dummyBigDecimal( BigDecimal bd );

}
